<ul class="nav navbar-nav mobile-nav">

<!--user-->

  <li class="user">
    <%= link_to current_subject do %>
      <%= image_tag current_subject.logo.url(:small) %>
      <%= truncate_name(current_subject.name, length: 20) %>
    <% end %>
  </li>

  <!-- dropdown menu links -->
  <li>
    <a href="<%=new_document_path%>">
      <i class="fa fa-plus"></i>
      <%=t('resource.actions.add')%>
    </a>
  </li>
  
  <!--message-->
  <li class="">
    <%= link_to messages_path do %>
      <i class="fa fa-envelope"></i>
      <%= t('message.messages') %>
    <% end %>
  </li>
  
  <!--settings-->
  <li class="">
    <%= link_to activities_path do %>
      <i class='fa fa-globe'></i> 
      <%= t('activity.other') %>
    <% end %>
  </li>
  
  <!--quiz-->
  <li class="">
    <%= link_to quiz_sessions_path do %>
    <i class="fa fa-check-square-o"></i>
    <%= t('quiz.live') %>
    <% end %>
  </li>




<!--profile-->
  
  <li class="settings-menu">
    <%= link_to settings_path do %>
    <i class="fa fa-cog"></i>
    <%= t('dropdown.settings') %>
    <% end %>
  </li>

  <!--lang-->
  <li class="dropdown language">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
      <i class="fa fa-flag-checkered"></i>
      <%= t('lang.title') %>
      <i class="fa fa-angle-down"></i>
    </a>
    <ul class="dropdown-menu">
      <% for locale in (I18n.available_locales) -%> 
       <li class="">
          <%= link_to image_tag("flags/" + locale.to_s + ".png", :title=>locale.to_s, :class=> "") + " " + t(:language_name, :locale => locale.to_s), session_locale_path(:new_locale => locale.to_s), :method => :post, :remote => false %>
        </li>
      <% end %>
    </ul>
  </li>

  <!--legal_notice-->
  <li>
    <a href="/legal_notice">
      <i class="fa fa-legal"></i>
      <%= t('conditions.other') %>
    </a>     
  </li>

  <!--manual-->
  <li>
    <%= link_to faq_path do %>
      <i class="fa fa-question-circle"> </i> <%=t('faq.title')%>
    <% end %>
  </li>

  <hr>
  <!--sign out-->
  <li class="sign-out">
    <%= link_to destroy_user_session_path, :method => :delete do %>
    <i class="fa fa-sign-out"></i>
    <%= t('sign_out') %>
    <% end %>
  </li>
</ul>